package com.Nuyoah.demo01.service.serviceImpl;

import com.Nuyoah.demo01.mappers.AdminMapper;
import com.Nuyoah.demo01.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;
    @Override
    public boolean isAdmin(Integer userId) {
        return adminMapper.isAdmin(userId);
    }
}
